<?php
namespace app\index\controller;

use think\Controller;
use think\Request;
use think\Loader;
use think\Db;

class Index
{

  public function index()
  {

  	$currentLat = '34.2777999';
  	$currentLng = '108.95309828';

  	$res = getAround($currentLat,$currentLng ,5000);
  	dump($res);
  	$minLat = $res['minLat'];
  	$minLng = $res['minLng'];

  	$d = getDistance($currentLat,$currentLng ,$minLat,$minLng);
  	dump($d);

  	$maxLat = $res['maxLat'];
  	$maxLng = $res['maxLng'];

  	$dd = getDistance($currentLat,$currentLng ,$maxLat,$maxLng);
  	dump($dd);
  }
   
    
	 
}
